package com.zyx.concurrentdemo.c03thread;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Yaxi.Zhang
 * @since 2021/10/13 09:42
 * desc: 测试多线程
 */
@Slf4j(topic = "c.TestMultiThread")
public class TestMultiThread {

    public static void main(String[] args) {
        new Thread(() -> {
            while(true) {
                log.debug("running");
            }
        },"t1").start();
        new Thread(() -> {
            while(true) {
                log.debug("running");
            }
        },"t2").start();
    }
}
